package com.guan.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/** 仅用于上传，不操作数据库。
 * @SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
 *在启动类上添加属性，默认不去加载数据库资源配置（推荐使用）
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//@ComponentScan(basePackages = {"com.guan"}) //讲师是带上这个注解的 但是我带上就启动报错，不带上，访问swagger也报错
@EnableDiscoveryClient
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class,args);
    }
}
